import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;

public class Test03 {
    public static void main(String[] args) {
        ArrayList<Integer> list=new ArrayList<>();
        Collections.addAll(list,1,2,3,4,5,6);
        Collections.addAll(list,0,0,0);
        Collections.shuffle(list);
        Random r=r=new Random();
        int index=r.nextInt(list.size());
        int num=list.get(index);
        System.out.println(num);
        ArrayList<String> boy=new ArrayList();
        ArrayList<String> girl=new ArrayList();
        Collections.addAll(boy,"张三","李四","王五");
        Collections.addAll(girl,"赵六","钱七");
        if(num==1){
            int boyIndex=r.nextInt(boy.size());
            System.out.println(boy.get(boyIndex));
        }
        else{
            int girlIndex=r.nextInt(girl.size());
            System.out.println(girl.get(girlIndex));
        }
    }
}
